package org.hxyjs.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class SupplierorderExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public SupplierorderExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        protected void addCriterionForJDBCTime(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Time(value.getTime()), property);
        }

        protected void addCriterionForJDBCTime(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Time> timeList = new ArrayList<java.sql.Time>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                timeList.add(new java.sql.Time(iter.next().getTime()));
            }
            addCriterion(condition, timeList, property);
        }

        protected void addCriterionForJDBCTime(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Time(value1.getTime()), new java.sql.Time(value2.getTime()), property);
        }

        public Criteria andUsnoIsNull() {
            addCriterion("usno is null");
            return (Criteria) this;
        }

        public Criteria andUsnoIsNotNull() {
            addCriterion("usno is not null");
            return (Criteria) this;
        }

        public Criteria andUsnoEqualTo(String value) {
            addCriterion("usno =", value, "usno");
            return (Criteria) this;
        }

        public Criteria andUsnoNotEqualTo(String value) {
            addCriterion("usno <>", value, "usno");
            return (Criteria) this;
        }

        public Criteria andUsnoGreaterThan(String value) {
            addCriterion("usno >", value, "usno");
            return (Criteria) this;
        }

        public Criteria andUsnoGreaterThanOrEqualTo(String value) {
            addCriterion("usno >=", value, "usno");
            return (Criteria) this;
        }

        public Criteria andUsnoLessThan(String value) {
            addCriterion("usno <", value, "usno");
            return (Criteria) this;
        }

        public Criteria andUsnoLessThanOrEqualTo(String value) {
            addCriterion("usno <=", value, "usno");
            return (Criteria) this;
        }

        public Criteria andUsnoLike(String value) {
            addCriterion("usno like", value, "usno");
            return (Criteria) this;
        }

        public Criteria andUsnoNotLike(String value) {
            addCriterion("usno not like", value, "usno");
            return (Criteria) this;
        }

        public Criteria andUsnoIn(List<String> values) {
            addCriterion("usno in", values, "usno");
            return (Criteria) this;
        }

        public Criteria andUsnoNotIn(List<String> values) {
            addCriterion("usno not in", values, "usno");
            return (Criteria) this;
        }

        public Criteria andUsnoBetween(String value1, String value2) {
            addCriterion("usno between", value1, value2, "usno");
            return (Criteria) this;
        }

        public Criteria andUsnoNotBetween(String value1, String value2) {
            addCriterion("usno not between", value1, value2, "usno");
            return (Criteria) this;
        }

        public Criteria andSunoIsNull() {
            addCriterion("suno is null");
            return (Criteria) this;
        }

        public Criteria andSunoIsNotNull() {
            addCriterion("suno is not null");
            return (Criteria) this;
        }

        public Criteria andSunoEqualTo(String value) {
            addCriterion("suno =", value, "suno");
            return (Criteria) this;
        }

        public Criteria andSunoNotEqualTo(String value) {
            addCriterion("suno <>", value, "suno");
            return (Criteria) this;
        }

        public Criteria andSunoGreaterThan(String value) {
            addCriterion("suno >", value, "suno");
            return (Criteria) this;
        }

        public Criteria andSunoGreaterThanOrEqualTo(String value) {
            addCriterion("suno >=", value, "suno");
            return (Criteria) this;
        }

        public Criteria andSunoLessThan(String value) {
            addCriterion("suno <", value, "suno");
            return (Criteria) this;
        }

        public Criteria andSunoLessThanOrEqualTo(String value) {
            addCriterion("suno <=", value, "suno");
            return (Criteria) this;
        }

        public Criteria andSunoLike(String value) {
            addCriterion("suno like", value, "suno");
            return (Criteria) this;
        }

        public Criteria andSunoNotLike(String value) {
            addCriterion("suno not like", value, "suno");
            return (Criteria) this;
        }

        public Criteria andSunoIn(List<String> values) {
            addCriterion("suno in", values, "suno");
            return (Criteria) this;
        }

        public Criteria andSunoNotIn(List<String> values) {
            addCriterion("suno not in", values, "suno");
            return (Criteria) this;
        }

        public Criteria andSunoBetween(String value1, String value2) {
            addCriterion("suno between", value1, value2, "suno");
            return (Criteria) this;
        }

        public Criteria andSunoNotBetween(String value1, String value2) {
            addCriterion("suno not between", value1, value2, "suno");
            return (Criteria) this;
        }

        public Criteria andUnoIsNull() {
            addCriterion("uno is null");
            return (Criteria) this;
        }

        public Criteria andUnoIsNotNull() {
            addCriterion("uno is not null");
            return (Criteria) this;
        }

        public Criteria andUnoEqualTo(String value) {
            addCriterion("uno =", value, "uno");
            return (Criteria) this;
        }

        public Criteria andUnoNotEqualTo(String value) {
            addCriterion("uno <>", value, "uno");
            return (Criteria) this;
        }

        public Criteria andUnoGreaterThan(String value) {
            addCriterion("uno >", value, "uno");
            return (Criteria) this;
        }

        public Criteria andUnoGreaterThanOrEqualTo(String value) {
            addCriterion("uno >=", value, "uno");
            return (Criteria) this;
        }

        public Criteria andUnoLessThan(String value) {
            addCriterion("uno <", value, "uno");
            return (Criteria) this;
        }

        public Criteria andUnoLessThanOrEqualTo(String value) {
            addCriterion("uno <=", value, "uno");
            return (Criteria) this;
        }

        public Criteria andUnoLike(String value) {
            addCriterion("uno like", value, "uno");
            return (Criteria) this;
        }

        public Criteria andUnoNotLike(String value) {
            addCriterion("uno not like", value, "uno");
            return (Criteria) this;
        }

        public Criteria andUnoIn(List<String> values) {
            addCriterion("uno in", values, "uno");
            return (Criteria) this;
        }

        public Criteria andUnoNotIn(List<String> values) {
            addCriterion("uno not in", values, "uno");
            return (Criteria) this;
        }

        public Criteria andUnoBetween(String value1, String value2) {
            addCriterion("uno between", value1, value2, "uno");
            return (Criteria) this;
        }

        public Criteria andUnoNotBetween(String value1, String value2) {
            addCriterion("uno not between", value1, value2, "uno");
            return (Criteria) this;
        }

        public Criteria andUspriceIsNull() {
            addCriterion("usprice is null");
            return (Criteria) this;
        }

        public Criteria andUspriceIsNotNull() {
            addCriterion("usprice is not null");
            return (Criteria) this;
        }

        public Criteria andUspriceEqualTo(String value) {
            addCriterion("usprice =", value, "usprice");
            return (Criteria) this;
        }

        public Criteria andUspriceNotEqualTo(String value) {
            addCriterion("usprice <>", value, "usprice");
            return (Criteria) this;
        }

        public Criteria andUspriceGreaterThan(String value) {
            addCriterion("usprice >", value, "usprice");
            return (Criteria) this;
        }

        public Criteria andUspriceGreaterThanOrEqualTo(String value) {
            addCriterion("usprice >=", value, "usprice");
            return (Criteria) this;
        }

        public Criteria andUspriceLessThan(String value) {
            addCriterion("usprice <", value, "usprice");
            return (Criteria) this;
        }

        public Criteria andUspriceLessThanOrEqualTo(String value) {
            addCriterion("usprice <=", value, "usprice");
            return (Criteria) this;
        }

        public Criteria andUspriceLike(String value) {
            addCriterion("usprice like", value, "usprice");
            return (Criteria) this;
        }

        public Criteria andUspriceNotLike(String value) {
            addCriterion("usprice not like", value, "usprice");
            return (Criteria) this;
        }

        public Criteria andUspriceIn(List<String> values) {
            addCriterion("usprice in", values, "usprice");
            return (Criteria) this;
        }

        public Criteria andUspriceNotIn(List<String> values) {
            addCriterion("usprice not in", values, "usprice");
            return (Criteria) this;
        }

        public Criteria andUspriceBetween(String value1, String value2) {
            addCriterion("usprice between", value1, value2, "usprice");
            return (Criteria) this;
        }

        public Criteria andUspriceNotBetween(String value1, String value2) {
            addCriterion("usprice not between", value1, value2, "usprice");
            return (Criteria) this;
        }

        public Criteria andUstimeIsNull() {
            addCriterion("usTime is null");
            return (Criteria) this;
        }

        public Criteria andUstimeIsNotNull() {
            addCriterion("usTime is not null");
            return (Criteria) this;
        }

        public Criteria andUstimeEqualTo(Date value) {
            addCriterionForJDBCTime("usTime =", value, "ustime");
            return (Criteria) this;
        }

        public Criteria andUstimeNotEqualTo(Date value) {
            addCriterionForJDBCTime("usTime <>", value, "ustime");
            return (Criteria) this;
        }

        public Criteria andUstimeGreaterThan(Date value) {
            addCriterionForJDBCTime("usTime >", value, "ustime");
            return (Criteria) this;
        }

        public Criteria andUstimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCTime("usTime >=", value, "ustime");
            return (Criteria) this;
        }

        public Criteria andUstimeLessThan(Date value) {
            addCriterionForJDBCTime("usTime <", value, "ustime");
            return (Criteria) this;
        }

        public Criteria andUstimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCTime("usTime <=", value, "ustime");
            return (Criteria) this;
        }

        public Criteria andUstimeIn(List<Date> values) {
            addCriterionForJDBCTime("usTime in", values, "ustime");
            return (Criteria) this;
        }

        public Criteria andUstimeNotIn(List<Date> values) {
            addCriterionForJDBCTime("usTime not in", values, "ustime");
            return (Criteria) this;
        }

        public Criteria andUstimeBetween(Date value1, Date value2) {
            addCriterionForJDBCTime("usTime between", value1, value2, "ustime");
            return (Criteria) this;
        }

        public Criteria andUstimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCTime("usTime not between", value1, value2, "ustime");
            return (Criteria) this;
        }

        public Criteria andUsdateIsNull() {
            addCriterion("usDate is null");
            return (Criteria) this;
        }

        public Criteria andUsdateIsNotNull() {
            addCriterion("usDate is not null");
            return (Criteria) this;
        }

        public Criteria andUsdateEqualTo(Date value) {
            addCriterionForJDBCDate("usDate =", value, "usdate");
            return (Criteria) this;
        }

        public Criteria andUsdateNotEqualTo(Date value) {
            addCriterionForJDBCDate("usDate <>", value, "usdate");
            return (Criteria) this;
        }

        public Criteria andUsdateGreaterThan(Date value) {
            addCriterionForJDBCDate("usDate >", value, "usdate");
            return (Criteria) this;
        }

        public Criteria andUsdateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("usDate >=", value, "usdate");
            return (Criteria) this;
        }

        public Criteria andUsdateLessThan(Date value) {
            addCriterionForJDBCDate("usDate <", value, "usdate");
            return (Criteria) this;
        }

        public Criteria andUsdateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("usDate <=", value, "usdate");
            return (Criteria) this;
        }

        public Criteria andUsdateIn(List<Date> values) {
            addCriterionForJDBCDate("usDate in", values, "usdate");
            return (Criteria) this;
        }

        public Criteria andUsdateNotIn(List<Date> values) {
            addCriterionForJDBCDate("usDate not in", values, "usdate");
            return (Criteria) this;
        }

        public Criteria andUsdateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("usDate between", value1, value2, "usdate");
            return (Criteria) this;
        }

        public Criteria andUsdateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("usDate not between", value1, value2, "usdate");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}